package com.hb.gp;

import java.util.Map;

/**
 * 处理指令的工具类
 * 
 * @author shangzk
 *
 */
public interface IGPCommandMessageService {
	public static final String P_START = "(";
	public static final String P_END = ")";
	public static final String P_SEP = ",";
	public static final String VARIBLE_RANDOM = GPVarible.VARIBLE_RANDOM
			.toString();
	public static final String KEY_INIT = GPVarible.KEY_INIT.toString();
	public static final String KEY_NEW = GPVarible.KEY_NEW.toString();
	public static final String KEY_SESSION = GPVarible.KEY_SESSION.toString();
	public static final String VARIBLE_RESPONSE = GPVarible.VARIBLE_RESPONSE
			.toString();
	public static final String VARIBLE_LASTMAC = GPVarible.VARIBLE_LASTMAC
			.toString();

	public static final String VARIBLE_BLANCE = "VARIBLE_EPURSE";


	/**
	 * 将所有的数据放入到Map中存储
	 * 
	 * @param apdu
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public String makeApduMap(String apdu, Map<String, Object> storeMap)
			throws Exception;

	/**
	 * 将所有的数据放入到Map中存储
	 * 
	 * @param apdu
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public String makeApduMap(String apdu, Map<String, Object> varibleMap,
			Map<String, Object> storeMap) throws Exception;
}
